package com.lft.com.oilgas.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.io.Serializable;

import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 *
 * </p>
 *
 * @author tyqw
 * @since 2024-09-10
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class IdCard implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 身份证正面
     */
    private String front;

    /**
     * 身份证反面
     */
    private String opposite;

    //证件姓名
    private String name;
    //证件号码
    private String identity;
    //证件有效日期
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate exp;
    //证件到期时间
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate  ddl;
    //证件审核状态
    private Integer status;
    //商户id
    @TableField(exist  = false)
    private Integer merchantid;
    //商户添加是法人还是实名
    @TableField(exist  = false)
    private Integer sanhulei;
}
